

package com.creawor.cicf.connection;

import java.sql.Connection;
import java.sql.DriverManager;
import java.util.Properties;

public class ConnectionManager
{

    public ConnectionManager()
    {
    }
    
    public ConnectionManager(Properties props)
    {
    	
    }

    public static Connection getConnection()
    {
        try
        {
            Class.forName("com.microsoft.sqlserver.jdbc.SQLServerDriver");
            String url = "jdbc:sqlserver://localhost:1433;DatabaseName=hz_market";
            String uid = "sa";
            String pwd = "123456";
            Connection oConn = DriverManager.getConnection(url, uid, pwd);
            return oConn;
        }
        catch(Exception e)
        {
            e.printStackTrace();
        }
        return null;
    }
}